.ant-table {
  background-color: transparent;
}
.ant-table-fixed-header .ant-table-scroll .ant-table-header {
  overflow: hidden !important;
  margin-bottom: 0 !important;
}
.ant-table-empty .ant-table-scroll .ant-table-header {
  overflow: auto !important;
  margin-bottom: -7px !important;
}
.ant-table-thead > tr > th {
  border: none;
}

// 表格铺满以及滚动条处理
.ant-table-wrapper {
  height: 100%;
  .ant-table,
  .ant-spin-nested-loading,
  .ant-spin-container,
  .ant-table-scroll {
    overflow: hidden;
  }
  .ant-table {
    flex: 1;
    table:not(.ant-table-fixed) {
      width: 100% !important;
    }
  }
  .ant-table-content,
  .ant-table-scroll,
  .ant-spin-nested-loading,
  .ant-spin-container {
    height: 100%;
  }
  .ant-spin-container,
  .ant-table-scroll {
    display: flex;
    flex-direction: column;
    .ant-table-header + .ant-table-body {
      flex: 1;
      overflow: auto !important;
      max-height: none !important;
    }
  }
  .ant-table-pagination {
    text-align: right;
    margin: 0;
    padding: 16px 0 0;
  }
  .ant-table-empty {
    .ant-table-header + .ant-table-body {
      display: none;
    }
    .ant-table-header + .ant-table-body + .ant-table-placeholder {
      flex: 1;
      margin-top: 0;
      top: 7px;
    }
  }
  // 固定列样式修复
  .ant-table-fixed-left,
  .ant-table-fixed-right {
    height: calc(100% - 7px);
    .ant-table-body-outer {
      height: calc(100% - 50px);
    }
  }
}

// 表头
.ant-table-wrapper {
  .ant-table-thead
    > tr
    > th
    .ant-table-header-column
    .ant-table-column-sorters {
    display: flex;
    width: 100%;
    align-items: center;
  }
  .ant-table-thead
    > tr
    > th
    .ant-table-header-column
    .ant-table-column-sorters
    > .ant-table-column-title {
    display: block;
  }
  .ant-table-thead {
    tr {
      height: auto !important;
    }
    th {
      height: 50px;
      line-height: 50px;
      font-weight: 500;
    }
    th[colspan] {
      height: 20px;
      line-height: 20px;
      font-size: 12px;
      border-top: 1px solid var(--primary);
      font-weight: 400;
    }
    tr:nth-of-type(2) {
      th {
        height: 30px;
        line-height: 30px;
      }
    }
    > tr > th .ant-table-header-column .ant-table-column-sorters::before {
      right: 0 !important;
    }
    > tr > th .ant-table-header-column .ant-table-column-sorters:hover::before {
      background: var(--primary-fade-20);
    }
  }
}
